package org.jiajie.coffeecodes.sp.test.bean;

import org.jiajie.coffeecodes.sp.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * @author jie
 * @date 2021/9/7 9:28 PM
 */
@Component
public class UserDao {
    private static Map<String, String> hashMap = new HashMap<>();

   static  {
        hashMap.put("10001", "jblog");
        hashMap.put("10002", "eight cup water");
        hashMap.put("10003", "a mao");
    }

    public String queryUserName(String uId){
        return hashMap.get(uId);
    }
}
